<!DOCTYPE html>
<html>
  <head>
	<meta charset="utf-8">
	<title>All experiments</title>
	<link rel="stylesheet" href="/static/jquery.ui.all.css">
	 <link rel=stylesheet type="text/css" href="/static/corr_w_scatter.css">
	 <script type="text/javascript" src="/static/d3.min.js"></script>
	<script src="/static/jquery-1.10.2.js"></script>
	<script src="/static/jquery.ui.core.js"></script>
	<script src="/static/jquery.ui.widget.js"></script>
	<script src="/static/jquery.ui.accordion.js"></script>
	<style>
	.inline-box{
	width:800px;
	hight:600px;
	display: inline-block;
	}

	div.tooltip {   
	  position: absolute;           
	  text-align: center;           
	  width: 100px;                  
	  height: 48px;                 
	  padding: 2px;             
	  font: 12px sans-serif;        
	  background: white;   
	  border: 1px;      
	  border-radius: 8px;           
	  pointer-events: none;         
	}

	div.achilles_tbl {   
	  text-align: center;           
	  padding: 2px;             
	  font: 11px sans-serif;        
	  color: white;
	  background: #0074D9;   
	  border: 1px;      
	  border-radius: 8px;           
	  pointer-events: none;         
	}

	.dataframe{
		border: none;
		table-layout: fixed;
		width: 100%;
	}

	.axis path,
	.axis line {
	  fill: none;
	  stroke: #000;
	  shape-rendering: crispEdges;
	}

	</style>
	<script>
	$(function() {
	$("div.accordian").accordion({
	    heightStyle: "content",
	    autoHeight: false,
	    collapsible: true,
	    active: false,
		});
	});
	</script>
  </head> 
  <body>
    <h1>Summary of rankprod</h1>


<!-- show the current plate -->


    <div class="accordian">

	<h1>Plate dataset type: {{ platetype }}</h1>
	    <div>
		    <h2>Plate name / barcode:   {{ plate.platename }} replicate: {{ plate.replicate }} </h2>
		    <h2>cell line:</h2>
		    <p>{{ plate.cellline }}</p>
		    <h2>Condition:</h2>
		    <p>{{ plate.condition }}</p>
		    <h2>Plate concentration:</h2>
		    <p>{{ plate.concentration }}</p>
		    <h2>Data matrix:</h2>

		    {{plate.res_table|safe}}
	    </div>

	    <h2>Plate heatmap </h2>
	    <div id="plot"></div>
    </div>
    <script>
	var json_data = {{data|safe}};
	var index = {{index|safe}};
	var ctrls = null;
	var screentype = "{{screentype}}";
	
	{% if plate.anno_json %}
	anno = {{plate.anno_json|safe}}
	{% else %}
	anno = {}
	{% endif %}
    </script>
    <script type="text/javascript" src="/static/draw_final.js"></script>
    <script>
draw_heatmap(json_data, index, anno, ctrls, "div#plot", screentype);
    </script>

</body>
</html>
